package com.xyf.blog.service;

import com.xyf.blog.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface TypeService {
    Type saveType(Type type);
    Type getType(Long id);
//    这里返回page,里面的数据是type，用做分页
    Page<Type> listType(Pageable pageable);
    //数据库更新，传id和type
    Type updateType(Long id,Type type);

    Boolean deleteType(Long id);
}
